import request from'@/utils/http.js'

// 获取验证码
export const captchaApi = () =>{
    return request({
        url:'sys/backend/captchaImg',
        method:"GET",
    })
}

// 登录
export const loginApi=(data)=>{
    return request({
        url:'sys/backend/login',
        method:"POST",
        data:JSON.stringify(data)
    })
}

// 刷新token
export const refreshApi=()=>{
    return request({
        url:'sys/backend/refresh',
        method:"GET",
    })
}

// 获取用户信息
export const userInfoApi=()=>{
    return request({
        url:'sys/backend/userInfo',
        method:"GET",
    })
}
